module.exports = app => {
	const { router, controller } = app;
	router.post('/upload', controller.file.upload);
	router.get('/file', controller.file.list);
	router.post('/file/createDir', controller.file.createDir);
	router.post('/file/rename', controller.file.editName);
	router.post('/file/delete', controller.file.delete);
	router.get('/file/search', controller.file.search);
	router.get('/file/dir', controller.file.dirList);
};
